package com.ruoyi.activiti.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.activiti.mapper.SpecialCaseHandlingMapper;
import com.ruoyi.activiti.domain.SpecialCaseHandling;
import com.ruoyi.activiti.service.ISpecialCaseHandlingService;
import com.ruoyi.common.core.text.Convert;

/**
 * 特殊情况处理Service业务层处理
 * 
 * @author lifan
 * @date 2021-04-14
 */
@Service
public class SpecialCaseHandlingServiceImpl implements ISpecialCaseHandlingService 
{
    @Autowired
    private SpecialCaseHandlingMapper specialCaseHandlingMapper;

    /**
     * 查询特殊情况处理
     * 
     * @param id 特殊情况处理ID
     * @return 特殊情况处理
     */
    @Override
    public SpecialCaseHandling selectSpecialCaseHandlingById(Long id)
    {
        return specialCaseHandlingMapper.selectSpecialCaseHandlingById(id);
    }

    /**
     * 查询特殊情况处理列表
     * 
     * @param specialCaseHandling 特殊情况处理
     * @return 特殊情况处理
     */
    @Override
    public List<SpecialCaseHandling> selectSpecialCaseHandlingList(SpecialCaseHandling specialCaseHandling)
    {
        return specialCaseHandlingMapper.selectSpecialCaseHandlingList(specialCaseHandling);
    }

    /**
     * 新增特殊情况处理
     * 
     * @param specialCaseHandling 特殊情况处理
     * @return 结果
     */
    @Override
    public int insertSpecialCaseHandling(SpecialCaseHandling specialCaseHandling)
    {
        return specialCaseHandlingMapper.insertSpecialCaseHandling(specialCaseHandling);
    }

    /**
     * 修改特殊情况处理
     * 
     * @param specialCaseHandling 特殊情况处理
     * @return 结果
     */
    @Override
    public int updateSpecialCaseHandling(SpecialCaseHandling specialCaseHandling)
    {
        return specialCaseHandlingMapper.updateSpecialCaseHandling(specialCaseHandling);
    }

    /**
     * 删除特殊情况处理对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteSpecialCaseHandlingByIds(String ids)
    {
        return specialCaseHandlingMapper.deleteSpecialCaseHandlingByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除特殊情况处理信息
     * 
     * @param id 特殊情况处理ID
     * @return 结果
     */
    @Override
    public int deleteSpecialCaseHandlingById(Long id)
    {
        return specialCaseHandlingMapper.deleteSpecialCaseHandlingById(id);
    }
}
